package com.funcourse.demo;

import com.funcourse.demo.wechat.conf.WechatConfiguration;
import com.funcourse.demo.wechat.conf.WeletConfiguration;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@PropertySource({ "classpath:wechat-config.properties" })
@ConfigurationProperties(prefix = "welet.configs")
@Data
public class WeletConfigurationsHolder {

  Map<String, WeletConfiguration> apps;
}
